home *** CD-ROM | disk | FTP | other *** search
- /*******************************************************/
- /* rxpcompile.ttx - TurboText macro to interface with */
- /* the RexxPlus compiler. You may desire to change the*/
- /* default paths to something appropriate to your */
- /* system. You may also wish to change the default */
- /* compiler options I use to something else. */
- /* */
- /* Steven D. Kapplin - 9/9/91 */
- /*******************************************************/
-
- TRACE OFF
-
- OPTIONS RESULTS
- PARSE ARG parm
- outputpath = 'VD0:'
- execpath = 'RPDir:'
-
- defaultopts = '+br +bs +ec +eh -v +l'
-
- RequestStr PROMPT "Options?" defaultopts
- IF RC = 5 THEN EXIT
-
- opts = compress(RESULT,'"')
-
- RESULTS = ''
- GetFilePath
-
- filename = compress(RESULT,'" ')
-
- GetFileInfo
- PARSE VAR RESULT lines status fname
- fname = compress(fname,'" ')
-
- SetStatusBar "Compiling "fname "... "
-
- address COMMAND 'RexxPlus +fi' filename '+fp ' outputpath ' +FE' outputpath||'errors' opts
-
- IF RC = 0 & parm = 'C' THEN DO
- SetStatusBar "Done"
- EXIT
- END
-
- IF RC = 0 & parm = 'X' THEN DO
- SetStatusBar "Linking ... "
- period = lastpos('.',fname)
- fname = left(fname,period-1)
- RequestFile PROMPT "OutputFile" PATTERN "#?" PATH execpath||fname
- outname = RESULT
- IF outname = '' THEN outname = execpath||fname
- ADDRESS COMMAND 'NewWsh "con:75/160/540/150/BLinking File: 'fname'/c" CMD' 'BLink' outputpath||fname||'.rexx.obj to ' outname ' lib lib: smallcode'
- SetStatusBar "Close CLI Window When Done"
- EXIT
- END
-
- BeepScreen
- CALL open(f,'vd0:errors','r')
- err = readln(f)
- fpos = seek(f,0,'c')
- CALL setclip('FilePos',fpos)
- CALL close(f)
-
- PARSE VAR err code ':' line ':' col ':' errmsg
-
- SetStatusBar errmsg
- Move line col
- CenterView TOGGLE
-